export interface ListParams {
  page: number;
  pageSize: number;
  name: string;
  beginData: string;
  endData: string;
  begId: number;
}

export interface ListData {
  id: number;
  companyId: number;
  elderlyId: number;
  addTime: string;
  familyName: string;
  name: string;
  counts: number;
  unit: null | string;
  expTime: null | string;
  sum: number;
  norms: null | string;
  remarks: null | string;
  addAccountId: number;
  begId: number;
  begName: string | null;
  idCard: string | null;
  addAccountName: string;
  elderlyName: string;
  elderlyPhoto: string;
  elderlyGender: string;
  elderlyIdCard: string;
  houseNmae: string | null;
  buildingName: string;
  startDate: string | null;
  endDate: string | null;
  plans: null;
}

export interface ListResult {
  counts: number;
  pageSize: number;
  list: ListData[];
}

export interface AddParams {
  id?: number;
  elderlyId?: number;
  addTime?: string;
  familyName?: string;
  name?: string;
  counts?: number;
  unit?: string;
  expTime?: string;
  sum?: number;
  norms?: string;
  remarks?: string;
}

export interface DetailResult {
  list: ListData[];
}

export interface PlansData {
  id?: number;
  drugId?: number;
  time: string;
  content: string;
}

export interface DrugsPlansListData {
  id: number;
  companyId: number;
  elderlyId: number;
  addTime: string;
  familyName: string;
  name: string;
  counts: number;
  unit: string;
  expTime: string;
  sum: number;
  norms: string;
  remarks: string;
  addAccountId: number;
  begId: number;
  begName: null | string;
  idCard: null | string;
  addAccountName: string;
  elderlyName: null | string;
  elderlyPhoto: null | string;
  elderlyGender: null | string;
  elderlyIdCard: null | string;
  houseName: null | string;
  buildingName: null | string;
  startDate: null | string;
  endDate: string;
  plans: PlansData[];
}

export interface DrugsPlansRes {
  list: DrugsPlansListData[];
}

export interface AddPlansParams {
  drugId: number;
  startDate: string;
  endDate?: null | string;
  plans: PlansData[];
}

export interface UpdateEndDateParams {
  id: number;
  endDate: string;
}
